# coding: utf-8
# author: admain_maxin
from tkinter import *

root = Tk()

# def wm_title(self, string=None):...
# title = wm_title
root.title("button组件")

# def wm_geometry(self, newGeometry=None):...
# geometry = wm_geometry
root.geometry("300x150+400+200")

# class Button(Widget):... def __init__(self, master=None, cnf={}, **kw):
# STANDARD OPTIONS
#
#             activebackground, activeforeground, anchor,
#             background, bitmap, borderwidth, cursor,
#             disabledforeground, font, foreground
#             highlightbackground, highlightcolor,
#             highlightthickness, image, justify,
#             padx, pady, relief, repeatdelay,
#             repeatinterval, takefocus, text,
#             textvariable, underline, wraplength
#
#         WIDGET-SPECIFIC OPTIONS
#
#             command, compound, default, height（非像素高度）,
#             overrelief, state, width（非像素高度）
bm1 = Button(text="button控件", borderwidth="2", font=("微软雅黑", 15), background="white")
# bm1.pack()

# def grid_configure(self, cnf={}, **kw):
# bm1.grid()

# def place_configure(self, cnf={}, **kw):
# x,y : 小部件在主控中的位置
# width,height : 小部件的像素宽和像素高
bm1.place(x=50, y=10, width=150, height=100)

root.mainloop()
